<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <!-- 测试封装的ajax -->
    <script src="./18-promise-ajax.js"></script>
    <script>
        ajax({ url: 'http://192.168.0.114:39999/aebasic/repairtype/getrepairtype', type:'post' })
            .then(res => {
                // console.log(res)
                if (res.code === 20000) {
                    console.log(res.data)
                }
            })
    </script>

</body>

</html>